#!/usr/bin/env python
# -*- coding: utf-8 -*-

import rospy
from ros1_protobuf_msg_bridge.srv import StartPathTeach, StartPathTeachRequest,StartPathTeachResponse

def handle_req(req):
    print "Returning [%lu]" % (req.pb.header.timestamp)
    res =StartPathTeachResponse()
    res.pb.ready=True
    return res

def add_two_ints_server():
    rospy.init_node('py_srv_server')
    s = rospy.Service('t_srv1', StartPathTeach, handle_req)
    print "Ready to test StartPathTeachAction"
    rospy.spin()

if __name__ == "__main__":
    add_two_ints_server()